<?php
 $sideItems =//el sideBar deepende del controllador
         array(
             array(  
                    'label' => 'Uilidad',
                    'link' => base_url().'reporte/reporteUtil',
                    'icon'=>'signal',
                    'active'=>($this->uri->segment(2)=="reporteUtil")),

                array(  
                    'label' => 'Pedidos',
                    'link' => base_url().'reporte/reportePedidos',
                    'icon'=>'book',
                    'active'=> ($this->uri->segment(2)=="reportePedidos")),
             array(  
                    'label' => 'Producción',
                    'link' => base_url().'reporte/reporteProduc',
                    'icon'=>'tasks',
                    'active'=> ($this->uri->segment(2)=="reporteProduc")),
             array(  
                    'label' => 'Tiempo de Trabajos',
                    'link' => base_url().'reporte/reporteTiempos',
                    'icon'=>'calendar',
                    'active'=> ($this->uri->segment(2)=="reporteTiempos")),
             array(  
                    'label' => 'Trabajos Demandados',
                    'link' => base_url().'reporte/reporteDemanda',
                    'icon'=>'list-alt',
                    'active'=> ($this->uri->segment(2)=="reporteDemanda")),             
            );
    
?>

<div class="well sidebar-nav">
    <ul class="nav nav-list">
        <li class="nav-header"><h4>Desempeño</h4></li>        
        <?php
            foreach ($sideItems as $sideItem){
                $activeStr = "";
                if ($sideItem['active']) $activeStr ="class='active'";
                echo "<li ".$activeStr.">
                        <a href='".$sideItem['link']."'>".
                            '<i class="icon-'.$sideItem['icon'].'"></i>'.$sideItem['label'].
                        "</a></li>";
            }
        ?>
    </ul>
</div>
